/*
 * @Description: 
 * @Author: linzejian
 * @Date: 2021-07-15 10:38:23
 * @LastEditTime: 2022-04-25 15:36:16
 * @LastEditors: linZeJian
 */
module.exports = {
	publicPath: process.env.BASE_URL, // 本地运行路由前缀
	outputDir: 'dist',
	devServer: {
		disableHostCheck: true,
		// proxy: {
		// 	[process.env.VUE_APP_BASE_API]: {
		// 		target: 'https://10.21.222.34/api', //后端接口地址
		// 		assetsPublicPath: '/',
		// 		changeOrigin: true, //是否允许跨越
		// 		pathRewrite: {
		// 			['^' + process.env.VUE_APP_BASE_API]: '', //重写为''空，已代理到本地
		// 		},
		// 	},
		// },
		host: '0.0.0.0',
		port: 9095, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
		https: false
	},
	productionSourceMap: false, //去掉.map文件，文件体积会小很多
	configureWebpack: (config) => {
		config.optimization.minimizer[0].options.terserOptions.compress.drop_console = false
	},
}